package com.sqlist.shareserver.util;

import java.util.HashSet;
import java.util.Set;

public class TokenPool {
    public static final Set<String> tokenSet = new HashSet();

    private TokenPool() {

    }

    public static void addToken(String token) {
        tokenSet.add(token);
    }

    public static void removeToken(String token) {
        tokenSet.remove(token);
    }

    public static boolean contains(String token) {
        return tokenSet.contains(token);
    }
}
